import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class lowerCase {

	public static void main(String[] args) throws IOException
	{
		BufferedReader br = new BufferedReader(new FileReader(args[0]));
		BufferedWriter bw = new BufferedWriter(new FileWriter(args[1]));
		String line;
		while ((line=br.readLine())!=null)
		{
			line = line.trim();
			String[] tokens = line.split(" ");
			for (int i = 0; i<tokens.length; i++)
			{
				if (tokens[i].length()>1)
					tokens[i] = tokens[i].toLowerCase();
			}
			String out="";
			for (int i=0; i<tokens.length-1; i++)
				out = out + tokens[i] + " ";
			out = out + tokens[tokens.length-1];
			System.out.println(out);
			bw.write(out);
			bw.newLine();
		}
		bw.close();
		br.close();
	}
	
	public Node lowercase(Node root) {
		if (root.children==null || root.children.size()==0)
		{
			String word = root.terminal;
			if (word.length()>1)
				word = word.toLowerCase();
			root.terminal = word;
		}
		else
		{
			for (Node child:root.children)
				lowercase(child);
		}
		return root;
	}
}